package com.sunny.shop.repository;

import com.sunny.shop.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {
    User findOneByNickname(String nickname);
    User findOneByOpenid(String openid);
    User findOneById(Long id);
}
